<?php
/**
 * Created by PhpStorm.
 * User: ewen
 * Date: 2019-12-19
 * Time: 20:53
 */

namespace app\common\model;


class XkSystemSetting extends Common
{

    /**
     * 编辑网站信息
     * @param $data
     */
    public static function editSetting($data)
    {
        $res = self::where(['id' => 1])->save($data);
        $res ? backSuccess([], lang('edit successfully')) : backError(lang('edit failed'));
    }

}